package paper.service;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import paper.dao.AccessoryDao;
import paper.dao.PaperArchiveDao;
import paper.dao.PaperDao;
import paper.domain.PaperArchive;

@Service
public class PaperQueryService {
    /**
     * Logger for this class
     */
    private static final Logger logger = LoggerFactory.getLogger(Service.class);

	@Autowired
    private PaperDao dao;
	
	@Autowired
	private PaperArchiveDao padao;
	
	@Autowired
	private AccessoryDao adao;
  

    public List<PaperArchive> findPaperArchive(String code){
        return padao.findByUnitCode(code);
    }

}
